﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ModelLayer
{
	[DataContract]
	public class Seat
	{
		[DataMember]
		private int _id;
		[DataMember]
		private Room _room;
		[DataMember]
		private int _row;
		[DataMember]
		private int _col;

		// *** Constructors ***
		public Seat()
		{
			_id = 0;
			_room = null;
			_row = -1;
			_col = -1;
		}
		public Seat(int id)
		{
			_id = id;
			_room = null;
			_row = -1;
			_col = -1;
		}
		public Seat(int id, Room room, int row, int col)
		{
			_id = id;
			_room = room;
			_row = row;
			_col = col;
		}
		// *** Getters and setters ***
		[DataMember]
		public int id
		{
			get
			{
				return _id;
			}
			set
			{
				_id = value;
			}
		}
		[DataMember]
		public Room room
		{
			get
			{
				return _room;
			}
			set
			{
				_room = value;
			}
		}
		[DataMember]
		public int row
		{
			get
			{
				return _row;
			}
			set
			{
				_row = value;
			}
		}
		[DataMember]
		public int col
		{
			get
			{
				return _col;
			}
			set
			{
				_col = value;
			}
		}
	}
}
